package testJdk.lambda.testFunction;

import org.junit.Test;

/**
 * @version 1.0.0
 * Created by cyd on 2021-12-15 11:57:49
 * @ClassName : learn_jdk.lambda.testFunction.FunctionTester
 * @Description : 类描述
 */
public class FunctionTester {

    @Test
    public void test() {
        String str = FunctionUtil.strHandle("张无忌", (x) -> (x + "是武林盟主"));
        System.out.println(str);
    }

    @Test
    public void test02() {
        String[] strs = new String[]{"123", "xiao"};
        String result = FunctionUtil.contactStr(strs, strings -> {
            return strings[0] + strings[1];
        });
        System.out.println(result);
    }
}
